
<template>
	<view v-show="showLoading || show" class="loadingView">
		<!-- <view class="loading-con"></view> -->
		<image class="loading-con" src="~@/static/img/loading.gif" mode="loading"></image>
	</view>
</template>

<script>
	import {
	  mapState,
	  mapMutations,
	} from 'vuex';
	
	export default {
		name: "loading",
		props: {
			show: {
				type: Boolean,
				default: false
			},
		},
		computed: {
			  ...mapState(['showLoading']),
		},
	}
</script>

<style lang="scss">
	// .loadingView {
	// 	width: 100%;
	// 	height: 100vh;
	// 	z-index: 99999;
	// 	position: fixed;
	// 	top: 0;
	// 	background:rgba(255,255,255,.4)
	// }
	
	
	
	
</style>
